import request from '@/utils/request'

// 查询销退上架异常列表
export function listAbnormalRestock(query) {
  return request({
    url: '/productAllocation/abnormalRestock/list',
    method: 'get',
    params: query
  })
}

// 查询销退上架异常详细
export function getAbnormalRestock(id) {
  return request({
    url: '/productAllocation/abnormalRestock/' + id,
    method: 'get'
  })
}

// 新增销退上架异常
export function addAbnormalRestock(data) {
  return request({
    url: '/productAllocation/abnormalRestock',
    method: 'post',
    data: data
  })
}

// 修改销退上架异常
export function updateAbnormalRestock(data) {
  return request({
    url: '/productAllocation/abnormalRestock',
    method: 'put',
    data: data
  })
}

// 删除销退上架异常
export function delAbnormalRestock(id) {
  return request({
    url: '/productAllocation/abnormalRestock/' + id,
    method: 'delete'
  })
}
